package budo.dubbo;

import org.apache.dubbo.config.RegistryConfig;
import org.budo.support.spring.util.SpringUtil;

import lombok.extern.slf4j.Slf4j;

/**
 * @author lmw
 * @see com.alibaba.dubbo.config.RegistryConfig
 * @see org.apache.dubbo.config.RegistryConfig
 */
@Slf4j
public class Registry extends RegistryConfig {
    private static final long serialVersionUID = -2753918526743637157L;

    @Override
    public void setAddress(String address) {
        String val = SpringUtil.resolvePlaceholder(address);
        log.info("#18 address=" + address + " > " + val + ", this=" + this);

        super.setAddress(val);
    }
}